package org.cangku.service.impl;

import org.cangku.dao.PJShopInfoDao;
import org.cangku.pojo.PJshopInfo;
import org.cangku.service.PJShopInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PJShopInfoServiceImpl implements PJShopInfoService {
    @Autowired
    private PJShopInfoDao pjShopInfoDao;

    @Override
    public List<PJshopInfo> getall() {
        return pjShopInfoDao.getAll();
    }

    @Override
    public int getByNameCount(String sName,int typeid) {
        return pjShopInfoDao.getByNameCount(sName,typeid);
    }

    @Override
    public List<PJshopInfo> queryAll(String sName, int typeid, int offset, int limit) {
        return pjShopInfoDao.query(sName,typeid,offset,limit);
    }
}
